package com.crp.unitalinforbaseplat.app.sys.dao;

import com.crp.unitalinforbaseplat.app.sys.entity.Permission;
import com.crp.unitalinforbaseplat.app.sys.entity.RolePermission;
import com.crp.unitalinforbaseplat.app.sys.entity.SelectEntity;
import com.crp.unitalinforbaseplat.app.unitalinforbaseplat.entity.PageBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectByRolePermissionList(List<RolePermission> rolePermissionList);

    List<Permission> list(PageBean<Permission> pageBean);

    Permission selectByName(String name);

    List<SelectEntity> listPermission(Permission permission);
}